package kr.hkit.androidcomplete02.service;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class NewsServiceTest extends Activity {
	private Intent intent;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.service_newsservicetest);
		intent = new Intent("kr.hkit.androidcomplete02.service.NEWS");
	}
	
	public void mOnClick(View v){
		switch(v.getId()){
		case R.id.service_newsstart:
			startService(intent);
			break;
		case R.id.service_newsstop:
			stopService(intent);
			break;
		}
	}
}
